#include <iostream>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "logical_server.h"
#include "logger.h"

using namespace std;
using namespace boost::posix_time;

int main()
{
		/*
		log4cpp::Category& logger = Logger::getLogger();
		DBManagerPtr p( new CDatabaseManager("test.conf") );
		CCardManager m(p);
		CCardInfo info;
		info.set_id("1234");
		info.set_cardId("1024");
		info.set_password("34897324");
		info.set_status(CCardInfo::STATUS_CANCELED);
		info.set_memo("memo");
		info.set_startTime( second_clock::local_time() );
		info.set_endTime( second_clock::local_time() );

		CCardInfo tmp;
		tmp.set_cardId( info.get_cardId() );
		tmp.set_password("1234");
		m.add_card(info);
		m.search_card(tmp);
		logger.debug("memo : %s", tmp.get_memo().c_str());
		*/
		CLogicalServer s("server.conf");
		s.listen();
		sleep(1024);
}
